/**
 * @file message.h
 *
 */
#ifndef MESSAGE_H
#define MESSAGE_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
*      INCLUDES
*********************/

#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lv_watch_conf.h"
#else
#include "../../../lvgl/lvgl.h"
#include "../../../lv_watch_conf.h"
#endif

#if USE_LV_WATCH_MESSAGE != 0

/*********************
*      DEFINES
*********************/

/**********************
*      TYPEDEFS
**********************/
typedef app_adaptor_new_message_info_t message_msg_info_t;

enum {
    MSG_SOURCE_SMS = 0,
    MSG_SOURCE_WECHAT,
};
typedef uint8_t message_source_t;

typedef struct {
    lv_watch_obj_ext_t lv_watch_obj;
    /*New data for this type */
    lv_obj_t * list;
    lv_obj_t * cont_tip;
    uint32_t * msg_index;
    uint32_t curr_index;
} lv_message_obj_ext_t;

/**********************
* GLOBAL PROTOTYPES
**********************/
/**
 * Create a call log application
 */
extern void message_create_event_cb(lv_obj_t * btn, lv_event_t e);
extern bool message_display_message_icon_check(void);
extern lv_obj_t * message_create(lv_obj_t * activity_obj);
/**********************
*      MACROS
**********************/

#endif /*USE_LV_WATCH_MESSAGE*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*MESSAGE_H*/
